package com.yungu.swift.socket.communication.message;

import com.yungu.swift.socket.communication.message.base.Message;
import com.yungu.swift.socket.communication.message.base.MessageType;

/**
 * 心跳报文
 *
 * @author Zerrion
 * @date 2018/3/12
 */
public class HeartBeatMessage extends Message {
    /**
     * 心跳时间戳
     */
    private long heartBeatTime = System.currentTimeMillis();


    public HeartBeatMessage() {
        super();
        setType(MessageType.HEART_BEAT);
    }

    public HeartBeatMessage(String clientUuid) {
        super(MessageType.HEART_BEAT, clientUuid);
    }


    public long getHeartBeatTime() {
        return heartBeatTime;
    }
}